package com.jixiang.common.constants;

public class RedisConstants {

    /**
     * adminlist的
     * redisKey
     */
    public final static String REDIS_DATA_PREX_ADMINLIST = "datakey:adminlist:";

    /**
     * adminlist的
     * lock
     */
    public final static String REDIS_LOCK_PREX_ADMINLIST = "lock:adminlist:";

    //页面菜单(停用)
    public final static String REDIS_PREX_DSLAYOUTMENU = "jxpro:dsLayoutMenu";

    //页面菜单
    public final static String REDIS_PREX_GSGOODSTYPE = "jxpro:gsGoodsType";

    //购物页页面图片
    public final static String REDIS_PREX_DSLAYOUTIMG = "jxpro:dslayoutimg";

    //管理端添加零时数据用于保存
    public final static String REDIS_PREX_DYNAMICPARAM_SPECS = "jxpro:dslayoutimg:DynamicParam:specs:";
    public final static String REDIS_PREX_DYNAMICPARAM_SPECSVALUE = "jxpro:dslayoutimg:DynamicParam:specsvalue:";
    public final static String REDIS_PREX_DYNAMICPARAM_SKUS = "jxpro:dslayoutimg:DynamicParam:skus:";

    //页面app获取商品类型数据通过id
    public final static String REDIS_PREX_GSGOODSTYPEBYID = "jxpro:gsGoodsTypeById:";
    //页面app获取商品类型数据通过id上的锁
    public final static String REDIS_LOCK_GSGOODSTYPEBYID = "jxpro:lock:gsGoodsTypeById:";

    //页面app获取商品类型图片数据通过id
    public final static String REDIS_PREX_GSGOODSTYPEPICBYID = "jxpro:TypePicById:";
    //页面app获取商品类型图片数据通过id上的锁
    public final static String REDIS_LOCK_GSGOODSTYPEPICBYID = "jxpro:lock:TypePicById:";


    //页面app获取二级商品类型图片数据通过id
    public final static String REDIS_PREX_SECONDGSGOODSTYPEPICBYID = "jxpro:SecondTypePicById:";
    //页面app获取二级商品类型图片数据通过id上的锁
    public final static String REDIS_LOCK_SECONDGSGOODSTYPEPICBYID = "jxpro:lock:SecondTypePicById:";


    //页面app获取商品
    public final static String REDIS_PREX_GOODS = "jxpro:Goods:";
    //页面app获取商品通过id上的锁
    public final static String REDIS_LOCK_GOODS = "jxpro:lock:GoodsId";
    public final static Long REDIS_EXPIER_GOODS = 100L;


    //手机号验证
    public final static String REDIS_PREX_PHONE = "jxpro:phone:";
    public final static Long REDIS_EXPIER_PHONE = 5L;






    //页面app获取购物车
    public final static String REDIS_PREX_CARD = "jxpro:card:";
    //页面app获取购物车通过id上的锁
    public final static String REDIS_LOCK_CARD = "jxpro:lock:card:";
    public final static int REDIS_EXPIRE_CARD = 3;




    //页面app地址
    public final static String REDIS_PREX_ADR = "jxpro:adr:";
    //地址
    public final static String REDIS_LOCK_ADR = "jxpro:lock:adr:";
    public final static int REDIS_EXPIRE_ADR = 3;

    //地址
    public final static String REDIS_PREX_REGION = "jxpro:region:";


    //商品库存判断
    public final static String REDIS_GOODS_ID = "jxpro:goodsId:";
    public final static String REDIS_SKU_ID = ":skuId:";


    //订单库存缓存
    public final static String REDIS_PREX_ORDER = "jxpro:orderId:";

    //订单锁
    public final static String REDIS_LOCK_ORDER = "jxpro:lock:orderId:";
    //订单过期时间
    public final static int REDIS_EXPIRE_ORDER = 3;



    //微信热门数据
    public final static String REDIS_PREX_WXSELECT = "jxpro:wxselect";

    //微信热门数据锁
    public final static String REDIS_LOCK_WXSELECT = "jxpro:lock:wxselect:";
    //微信热门数据过期时间
    public final static int REDIS_EXPIRE_WXSELECT = 3;
}
